package com.wander.designCreational.singleton.layzstaticinnersingleton;

/**
 * @Author : WDYin
 * @Date : 2020/5/8
 * @Description :
 */
public class Singleton {

    private Singleton() {
    }

    private static class LayzInner {
        private static Singleton singleton = new Singleton();
    }

    public static Singleton getSingleton() {
        return LayzInner.singleton;
    }
}
